// src/components/modals.tsx
'use client';
import React, {useEffect, useState} from 'react';
import CreateWorkspaceModal from "@/features/workspaces/components/create-workspace-modal";
import CreateChannelModal from "@/features/channels/components/create-channel-modal";

const Modals = () => {
    // 防止水和错误
    const [mounted, setMounted] = useState(false)
    useEffect(() => {
        setMounted(true)
    }, []);
    if (!mounted) return null;

    return (
        <>
            <CreateChannelModal/>
            <CreateWorkspaceModal/>
        </>
    );
};

export default Modals;